package gat.domain.service.backgroundUser.impl;

import com.bitsun.core.common.persistence.BasePService;
import com.bitsun.core.common.persistence.IPService;
import gat.convertor.backgroundUser.RoleReqDtoConvertor;
import gat.convertor.backgroundUser.RoleResDtoConvertor;
import gat.domain.service.backgroundUser.RoleDomainService;
import gat.infrastructure.persistence.dao.backgroundUser.RoleMapper;
import gat.infrastructure.persistence.po.backgroundUser.RolePo;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: Felix Woo （junfengwstar@gmail.com）
 * @Date: 2019-09-20 19:40
 * @Version: 1.0
 * @Description:
 */
@Slf4j
@Service("roleDomainService")
public class RoleDomainServiceImpl implements RoleDomainService {

    @Autowired
    private RoleReqDtoConvertor roleReqDtoConvertor;

    @Autowired
    private RoleResDtoConvertor roleResDtoConvertor;

    private IPService<RolePo> rolePoService;

    @SuppressWarnings("SpringJavaAutowiringInspection")
    public RoleDomainServiceImpl(RoleMapper roleMapper) {
        this.rolePoService = new BasePService(roleMapper);
    }
}